package com.course.feign;

import com.common.domain.Pages.PageResult;
import com.common.domain.pojo.Result;
import com.common.feign.OpenFeignRequestPrefix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "eselect-order-service")
public interface OrderFeignClient {

    // 获取指定用户的已成功购买的课程id
    @GetMapping(OpenFeignRequestPrefix.ORDER_SERVICE + "/purchaseds")
    Result<List<Long>> getPurchasedCourseIds(@RequestParam("userId") Long userId);


}
